package com.dys.service.impl;

import com.dys.dao.AdminMapper;
import com.dys.dao.CpMapper;
import com.dys.service.AdminService;
import com.dys.util.Admin;
import com.dys.util.Cp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("adminService")
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Autowired
    CpMapper cpMapper;

    @Override
    public Admin adminLogin(Admin admin) {
        return adminMapper.adminLogin(admin);
    }

    public List<Cp> getAllCp() {
        return cpMapper.getAllCp();
    }

}
